import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import path from "path";
import legacy from '@vitejs/plugin-legacy'

// https://vitejs.dev/config/
export default defineConfig({
  base: "./",
  plugins: [
    vue(),
    legacy({
      targets: ["defaults", "not IE 11"],
    })
  ],
  resolve: {
    alias: [
      {
        find: "@",
        replacement: path.join(__dirname, "src")
      }
    ],
    extensions: ['.js', '.ts', '.vue', ".json"]
  },
  server: {
    port: 5174
  }
})
